package cn.org.xiaoweiba.graduationdesign.bookmall.properties;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 和用户信息相关的属性绑定类
 */
@Component
@ConfigurationProperties(prefix = "xwb.userinfo")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserInfoProperties {

    /**
     * 用户登录后保存已登录状态(保存的用户信息)的有效时间，
     * 单位天
     */
    private Long userinfoExpire;

}
